package com.ruoyi.edu.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.ruoyi.common.core.domain.entity.SysUser;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 课程管理对象 course
 *
 * @author czdu
 * @date 2022-05-23
 */
public class Course extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** ID */
    private Long id;

    /** 课程名称 */
    @Excel(name = "课程名称")
    private String name;

    /** 课程描述 */
    @Excel(name = "课程描述")
    private String description;

    /** 编号 */
    @Excel(name = "编号")
    private String no;

    /** 课程ID */
    @Excel(name = "教师ID")
    private Long teacherId;


    /** 总课时 */
    @Excel(name = "总课时")
    private String total;

    /** 开始时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "开始时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date startTime;

    /** 结束时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "结束时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date endTime;

    /** 1:正常;2:暂停；3:取消 */
    @Excel(name = "1:正常;2:暂停；3:取消")
    private String courseStatus;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /** 原价 */
    @Excel(name = "原价")
    private Double amount;

    /** 折扣价 */
    @Excel(name = "折扣价")
    private Double discountPrice;


    /** 教师 */
    private SysUser teacher;


    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setName(String name)
    {
        this.name = name;
    }

    public String getName()
    {
        return name;
    }
    public void setDescription(String description)
    {
        this.description = description;
    }

    public String getDescription()
    {
        return description;
    }
    public void setNo(String no)
    {
        this.no = no;
    }

    public String getNo()
    {
        return no;
    }
    public void setTotal(String total)
    {
        this.total = total;
    }

    public String getTotal()
    {
        return total;
    }
    public void setStartTime(Date startTime)
    {
        this.startTime = startTime;
    }

    public Date getStartTime()
    {
        return startTime;
    }
    public void setEndTime(Date endTime)
    {
        this.endTime = endTime;
    }

    public Date getEndTime()
    {
        return endTime;
    }
    public void setCourseStatus(String courseStatus)
    {
        this.courseStatus = courseStatus;
    }

    public String getCourseStatus()
    {
        return courseStatus;
    }
    public void setDelFlag(String delFlag)
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag()
    {
        return delFlag;
    }
    public void setAmount(Double amount) 
    {
        this.amount = amount;
    }

    public Double getAmount() 
    {
        return amount;
    }
    public void setDiscountPrice(Double discountPrice) 
    {
        this.discountPrice = discountPrice;
    }

    public Double getDiscountPrice() 
    {
        return discountPrice;
    }

    public Long getTeacherId() {
        return teacherId;
    }

    public void setTeacherId(Long teacherId) {
        this.teacherId = teacherId;
    }

    public SysUser getTeacher() {
        return teacher;
    }

    public void setTeacher(SysUser teacher) {
        this.teacher = teacher;
    }

    @Override
    public String toString() {
        return "Course{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", description='" + description + '\'' +
                ", no='" + no + '\'' +
                ", teacherId=" + teacherId +
                ", total='" + total + '\'' +
                ", startTime=" + startTime +
                ", endTime=" + endTime +
                ", courseStatus='" + courseStatus + '\'' +
                ", delFlag='" + delFlag + '\'' +
                ", amount=" + amount +
                ", discountPrice=" + discountPrice +
                ", teacher=" + teacher +
                '}';
    }
}
